<%@ page contentType="text/html; charset=utf-8"%>
<c:set var="title" value="栏目"/>
<c:set var="rootpath" value="${CONTEXT_PATH}/admin/site/column/"/>
<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <script src="http://libs.baidu.com/jquery/2.0.0/jquery.min.js" type="text/javascript"></script>
    <title>${title}管理</title>
</head>
<body>
<ul>
    <li class="li_show_right">
        <label>60mil</label> <span style="color:red">*</span>:
        <input type="text" name="url" id="url_60mil" size="50" ltype='text' ligerui='{"width":300}'  value=""/>
        <input value="采集" type="button" class="l-button ellipsis"  onclick="return fetchArticle(1, 'url_60mil');"/>
    </li>
</ul><!--换行-->
<ul>
    <li class="li_show_right">
        <label>优美网</label> <span style="color:red">*</span>:
        <input type="text" name="url" id="url_umei" size="50" ltype='text' ligerui='{"width":300}'  value=""/>
        <input value="采集" type="button" class="l-button ellipsis"  onclick="return fetchArticle(2, 'url_umei');"/>
    </li>
</ul><!--换行-->
<ul>
    <li class="li_show_right">
        <label>俏丽网图片</label> <span style="color:red">*</span>:
        <input type="text" name="url" id="url_qiaoli" size="50" ltype='text' ligerui='{"width":300}'  value=""/>
        <input value="采集" type="button" class="l-button ellipsis"  onclick="return fetchArticle(3, 'url_qiaoli');"/>
    </li>
</ul><!--换行-->
<script type="text/javascript">
    function fetchArticle(siteFlag, urlFlag) {
        var url = $("#"+urlFlag).val();
        $.post("/api/fetch/fetchArticle.do",{webSite:siteFlag, url:url},function(result){
            var data = eval('(' + result + ')');
            if (data.ret==0) {
                alert(data.msg);
            }
        });
    }
</script>
</body>
</html>
